package com.atxiao.demo.mapper;

import com.atxiao.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
//@Repository
public interface UserMapper {

    //通过用户名和密码来判断是否登录成功
    User getUser(String phone, String password);
    //判断手机号存不存在
    User getUserByPhone(String phone);
    //判断密码正不正确
    String getUserNameByPassword(String password);

    //注册用户
    boolean registerUser(String name,String password,String phone);

    //修改用户登陆状态
    void changeStatus(int status,String name,String time);

}
